<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="ie=edge" />
        <title>Knockout.js</title>

        <link rel="stylesheet" href="style.css" />
    </head>
    <body>
        <div id="root">
            <section>
                选择一个航班:
                <select
                    data-bind="options:tickets,optionsCaption:'请选择...',optionsText:'name',value:chosenTicket"
                ></select>
                <button data-bind="click:resetTicket">清除</button>
                <p data-bind="with:chosenTicket">
                    您选择了 <b data-bind="text:name"></b>($
                    <span data-bind="text:price"></span>)
                </p>
            </section>
        </div>
        <script src="../scripts/lib/require.js" data-main="index.js"></script>
    </body>
</html>
